package edu.bbu.bibliospring.api.cdiassembler;

import edu.bbu.bibliospring.backend.model.BaseEntity;
import edu.bbu.bibliospring.common.dto.DataTransferObject;

/**
 * Created by erika on 5/26/14.
 * Assembler interface for transforming and interchanging models and dtos
 */
public interface Assembler <M extends BaseEntity, D extends DataTransferObject>  {

    M createModel ();

    D createDto ();

    D modelToDto (M model);

    M dtoToModel (D dto);
}
